$(document).ready(function(e) {
    $("form[name=WBContent_form]").find("input[name=PUBLISH]").click(function(e){
		WebBlogUtil.writeWebBlog(
					parseInt(WBContent_form.uID.value),
					WBContent_form.Content.value,
					parseInt(WBContent_form.Type.value),
					-1,
					null,{
						callback:function(e){
							alert('publish successfully');
						},
						errorHandler:function(e){
							alert('publish fail!');
						}
					}
		);
		e.stopPropagation();
	});
});

